using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Enterprise.Data;
using CentralOffice.Enterprise.DataAccess;

using NoticeReplyTable = CentralOffice.Enterprise.Data.NoticeReplyDataSet.NoticeReplyDataTable;
using NoticeReplyRow = CentralOffice.Enterprise.Data.NoticeReplyDataSet.NoticeReplyRow;

namespace CentralOffice.Enterprise.BusinessActions
{
    public class NoticeReply : DataAccessManager<NoticeReplyDataSet, NoticeReplyTable, NoticeReplyRow, NoticeReplyAdapter>
    {
        public static NoticeReplyTable FetchByEnterpriseId(string noticeId, string enterpriseId)
        {
            NoticeReplyAdapter adapter = new NoticeReplyAdapter();
            return adapter.FetchByEnterpriseId(new Guid(noticeId), new Guid(enterpriseId));
        }

        public static NoticeReplyTable FetchByNoticeId(string noticeId)
        {
            NoticeReplyAdapter adapter = new NoticeReplyAdapter();
            return adapter.FetchByNoticeId(new Guid(noticeId));
        }
    }
}
